<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix='c' uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

	<h2>가입정보</h2>
	<hr>
	<c:choose>
		<c:when test="${sessionScope.login_info.memberId != null }">
			<table>
				<tr>
					<td align="center">ID :</td>
					<td>${sessionScope.login_info.memberId }</td>
				</tr>
				<tr>
					<td align="center">이름 :</td>
					<td>${sessionScope.login_info.name }</td>
				</tr>
				<tr>
					<td align="center">생년 월일 :</td>
					<td>${sessionScope.login_info.birthday }</td>
				</tr>
				<tr>
					<td align="center">주소 :</td>
					<td>
						<table>
							<tr>
								<td>우편번호 :</td>
								<td>${sessionScope.zipcode }</td>
							</tr>
							<tr>
								<td>주소 :</td>
								<td>${sessionScope.smAddress }</td>
							</tr>
							<tr>
								<td>상세 주소 :</td>
								<td>${sessionScope.login_info.address }</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td align="center">e-mail :</td>
					<td>${sessionScope.login_info.email }</td>
				</tr>
				<tr>
					<td align="center">phone :</td>
					<td>${sessionScope.login_info.phoneNo }</td>
				</tr>
			</table>
		</c:when>
		<c:otherwise>
			<table>
				<tr>
					<td align="center">ID :</td>
					<td>${requestScope.mto.memberId }</td>
				</tr>
				<tr>
					<td align="center">이름 :</td>
					<td>${requestScope.mto.name }</td>
				</tr>
				<tr>
					<td align="center">생년 월일 :</td>
					<td>${requestScope.mto.birthday }</td>
				</tr>
				<tr>
					<td align="center">주소 :</td>
					<td>
						<table>
							<tr>
								<td>우편번호 :</td>
								<td>${requestScope.zipcode }</td>
							</tr>
							<tr>
								<td>주소 :</td>
								<td>${requestScope.smAddress }</td>
							</tr>
							<tr>
								<td>상세 주소 :</td>
								<td>${requestScope.mto.address }</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td align="center">e-mail :</td>
					<td>${requestScope.mto.email }</td>
				</tr>
				<tr>
					<td align="center">phone :</td>
					<td>${requestScope.mto.phoneNo }</td>
				</tr>
			</table>
		</c:otherwise>
	</c:choose>
	<br>
	<a href="mainPage.do">메인으로 가기</a>

